/* Universidad del Valle de Guatemala
 * Sara López 12050
 * Matías Vasquez 12186
 * Sección: 21
 * Edge.java
 */


public class Edge {
    private final Vertex source;
    private final Vertex destination;
    private final int weight; 
        
        public Edge(Vertex source, Vertex destination, int weight) {
                this.source = source;
                this.destination = destination;
                this.weight = weight;
        }
        public int getWeight() {
                return weight;
        }
        
        public Vertex getDestination() {
                return destination;
        }
        
        public Vertex getSource() {
                return source;
        }
        
        
        @Override
        public String toString() {
                return source + " " + destination;
        }
}
